
<faces-config version="2.0"
              xmlns="http://java.sun.com/xml/ns/javaee" 
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
    <navigation-rule>
        <from-view-id>/kontoConfirm.xhtml</from-view-id>
        <navigation-case>
            <from-outcome>register</from-outcome>
            <to-view-id>/index.xhtml</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>kontoDone</from-outcome>
            <from-action>#{KontoBean.addConfirmedUser}</from-action>
            <to-view-id>/kontoDone.xhtml</to-view-id>
        </navigation-case>
        </navigation-rule>>
        <navigation-rule>
            <from-view-id>/index.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>rejestracja</from-outcome>
                <to-view-id>/jsf/konto/Create.xhtml</to-view-id>
            </navigation-case>
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/logowanie.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>rejestracja</from-outcome>
                <to-view-id>/jsf/konto/Create.xhtml</to-view-id>
            </navigation-case>
            
        </navigation-rule>
        <navigation-rule>
            <from-view-id>/logowanie.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>rejestracja</from-outcome>
                <to-view-id>/jsf/konto/Create.xhtml</to-view-id>
            </navigation-case>
            
        </navigation-rule>
        
        
        <navigation-rule>
            <from-view-id>/StronaGlowna.xhtml</from-view-id>
            <navigation-case>
                <from-outcome>wylogowanie</from-outcome>
                <to-view-id>/index.xhtml</to-view-id>
            </navigation-case>
        </navigation-rule>
            
        <application>
            <resource-bundle>
                <base-name>/Bundle</base-name>
                <var>bundle</var>
            </resource-bundle>
        </application>
    </faces-config>